package com.hhf.feiapiclientsdk;

import com.hhf.feiapiclientsdk.client.HelloClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Author hhf
 * @Date 2024/10/5
 * @Description
 */
@Configuration
@ConfigurationProperties("feiapi.client")
@ComponentScan
@Data
public class FeiApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public HelloClient helloClient(){
        return new HelloClient(accessKey,secretKey);
    }

}
